package com.sy.core.model.common;

import com.sy.core.model.SysUser;
import org.crazycake.shiro.AuthCachePrincipal;

import java.io.Serializable;
import java.util.List;

public class Permissions  implements AuthCachePrincipal, Serializable {
    private static final long serialVersionUID = 5683907037264215835L;
    private List<MenuTree> menus;
    private List<MenuTree> points;
    private List<MenuTree> apis;
    private SysUser sysUser;
    private String token;

    public Permissions() {
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public List<MenuTree> getMenus() {
        return menus;
    }

    public void setMenus(List<MenuTree> menus) {
        this.menus = menus;
    }

    public List<MenuTree> getPoints() {
        return points;
    }

    public void setPoints(List<MenuTree> points) {
        this.points = points;
    }

    public List<MenuTree> getApis() {
        return apis;
    }

    public void setApis(List<MenuTree> apis) {
        this.apis = apis;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String getAuthCacheKey() {
        return null;
    }
}
